{* $Id: 20120103 *}
<div id="search-area" class="m-b-10">
    {foreach $pv.search as $sitem}
    {if $sitem@key != 'arr'}
           <fieldset><legend>&rsaquo;&nbsp;<a class="link" href="#">{$lang.$action.search.$sitem@key}</a></legend>
            <div id="{$action}-search-{$sitem@key}" class="admin-search-area hide">
    <form id="form-{$sitem@key}" onsubmit="return false;">
        <input type="hidden" name="f" value="{$sitem@key}" />
        <ul class="clear tk-search-ul horizontal-list" name="{$sitem@key}">
            {foreach $sitem as $item}
            {if $item eq 'text'}
            <li class="border">
                <label for="tk-{$sitem@key}-{$item@key}">
                    {$lang.$action.$item@key|default:$item@key} 
                </label>
                <input type="text" name="{$item@key}" id="tk-{$sitem@key}-{$item@key}" />
            </li>{/if}
            {if $item eq 'select'}
            <li class="border">
                <label for="tk-{$sitem@key}-{$item@key}">
                    {$lang.$action.$item@key|default:$item@key} 
                </label>
                <select name="{$item@key}" id="tk-{$sitem@key}-{$item@key}">
                    {html_options options=$pv.search.arr.$item@key}
                </select>
            </li>
            {/if}
            {if $item eq 'time'}
            <li class="border">
                <label for="tk-{$sitem@key}-{$item@key}">
                    {$lang.$action.$item@key|default:$item@key} 
                </label>
                <input type="text" name="{$item@key}" id="tk-{$sitem@key}-{$item@key}" class="admin-datepicker" />
            </li>{/if}
            {/foreach}

            <li class="display-cell">
                <a href="#" class="sprite-icons sprite-search darker tk-search-box vmiddle" id="{$sitem@key}">&nbsp;</a>
            </li>

        </ul>

    </form>
    </div>
    </fieldset>
                        {/if} 
    {/foreach}
</div>
